package com.znsd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 优惠价类型表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("coupon_type")
public class CouponType extends Model<CouponType> {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠类型Id
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Integer typeId;
    /**
     * 满减
     */
    @TableField("full_reduction")
    private String fullReduction;
    /**
     * 折扣
     */
    private String discount;


    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getFullReduction() {
        return fullReduction;
    }

    public void setFullReduction(String fullReduction) {
        this.fullReduction = fullReduction;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    @Override
    protected Serializable pkVal() {
        return this.typeId;
    }

    @Override
    public String toString() {
        return "CouponType{" +
        "typeId=" + typeId +
        ", fullReduction=" + fullReduction +
        ", discount=" + discount +
        "}";
    }
}
